$OpenBSD: patch-qcadlib_src_engine_rs_entity_cpp,v 1.1 2010/06/07 20:08:09 kili Exp $
--- qcadlib/src/engine/rs_entity.cpp.orig	Tue Nov 22 12:52:32 2005
+++ qcadlib/src/engine/rs_entity.cpp	Sat Jun  5 19:00:52 2010
@@ -861,7 +861,7 @@ std::ostream& operator << (std::ostream& os, RS_Entity
         os << " layer: NULL ";
     } else {
         os << " layer: " << e.layer->getName().latin1() << " ";
-        os << " layer address: " << (int)(e.layer) << " ";
+        os << " layer address: " << (long)(e.layer) << " ";
     }
 
     os << e.pen << "\n";
